import type { ExpandedUserSchema } from '@gitbeaker/rest';
import { NCard } from 'naive-ui'

export const DropdownTitle = (currentUser: ExpandedUserSchema | null) => {

  if (!currentUser) {
    return <></>
  }
  return (<>
    <NCard title={currentUser.name} bordered={ false } size={ 'small' }>
      { currentUser.email }
    </NCard>
  </>)
}
